package com.code.train.autoconfig;


import com.code.train.autoconfig.properties.AipFaceProperties;
import com.code.train.autoconfig.properties.HuanXinProperties;
import com.code.train.autoconfig.properties.OssProperties;
import com.code.train.autoconfig.properties.SmsProperties;
import com.code.train.autoconfig.template.SmsTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@EnableConfigurationProperties({
        SmsProperties.class,
        OssProperties.class,
        AipFaceProperties.class,
        HuanXinProperties.class
})
@Configuration
public class TanhuaAutoConfiguration {

    @Bean
    public SmsTemplate smsTemplate(SmsProperties properties) {
        return new SmsTemplate(properties);
    }

//    @Bean
//    public OssTemplate ossTemplate(OssProperties properties) {
//        return new OssTemplate(properties);
//    }
//
//    @Bean
//    public AipFaceTemplate aipFaceTemplate() {
//        return new AipFaceTemplate();
//    }
//
//    @Bean
//    public HuanXinTemplate huanXinTemplate(HuanXinProperties properties) {
//        return new HuanXinTemplate(properties);
//    }

}
